//
//  AppDelegate.m
//  ceShi12
//
//  Created by RT on 2025/6/25.
//

#import "AppDelegate.h"
#import "ViewController2.h"
#import "ViewController3.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    UITabBarController *ta = [UITabBarController new];

    UINavigationController *na1 = [[UINavigationController alloc]initWithRootViewController:[ViewController2 new]];
    na1.tabBarItem.title = @"页面";
    UINavigationController *na3 = [[UINavigationController alloc]initWithRootViewController:[ViewController3 new]];
    na3.tabBarItem.title = @"页面";
    
    ta.viewControllers = @[na1,na3];
    
    ta.view.backgroundColor = [UIColor whiteColor];
    
    self.window.rootViewController = ta;
//    [UITabBar appearance].translucent = NO;
//    [UINavigationBar appearance].translucent = NO;
    // Override point for customization after application launch.
    [self.window makeKeyAndVisible];
    
    return YES;
}


#pragma mark - UISceneSession lifecycle


- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    // Called when a new scene session is being created.
    // Use this method to select a configuration to create the new scene with.
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}


- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
    // Called when the user discards a scene session.
    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


@end
